# -*- coding:utf-8 -*-
from flask import Blueprint, redirect, session

file_blu = Blueprint("file", __name__, url_prefix="/file")

from . import views


@file_blu.before_request
def check_login_status():
    """检查当前用户是否登录"""
    user = session.get("userId")
    if not user:
        return redirect("/")
